package com.hxgz.steel.service;

import com.hxgz.steel.common.ServerResponse;
import com.hxgz.steel.domain.User;
import com.hxgz.steel.dto.NewOrderAskBuyPayDto;
import com.hxgz.steel.dto.OrderItemTimeDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface NewOrderService {
    ServerResponse getOrderDetailByBuyer(String id);

    ServerResponse getOrderDetailSeller(Long id, Long userId);

    ServerResponse getOrderDetailMiniPrograms(Long userId, Long orderId);

    ServerResponse askBuyPay(NewOrderAskBuyPayDto newOrderAskBuyPayDto,
        HttpServletRequest httpServletRequest, User user) throws Exception;

    ServerResponse getAskFileUrlByMiniPrograms(Long askId,HttpServletResponse response, HttpServletRequest request);

    ServerResponse getQuotationFileUrlByMiniPrograms(Long quotationId, HttpServletResponse response, HttpServletRequest request);

    List<OrderItemTimeDto> newGetOrderItemByOrderId(Long orderId,Long quotationId);
}
